package cn.itwangxiang.android.ui;

import cn.itwangxiang.android.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;

public class DemoActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.demo_activity);
		Toast.makeText(DemoActivity.this, "Activity ======>> onCreate",
				Toast.LENGTH_SHORT).show();
	}
	
	@Override
	protected void onStart() {
		super.onStart();
		Toast.makeText(DemoActivity.this, "Activity ======>> onStart",
				Toast.LENGTH_SHORT).show();
	}

	@Override
	protected void onRestart() {
		super.onRestart();
		Toast.makeText(DemoActivity.this, "Activity ======>> onRestart",
				Toast.LENGTH_SHORT).show();
	}

	@Override
	protected void onResume() {
		super.onResume();
		Toast.makeText(DemoActivity.this, "Activity ======>> onResume",
				Toast.LENGTH_SHORT).show();
	}

	@Override
	protected void onPause() {
		super.onPause();
		Toast.makeText(DemoActivity.this, "Activity ======>> onPause",
				Toast.LENGTH_SHORT).show();
	}

	@Override
	protected void onStop() {
		super.onStop();
		Toast.makeText(DemoActivity.this, "Activity ======>> onStop",
				Toast.LENGTH_SHORT).show();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
		Toast.makeText(DemoActivity.this, "Activity ======>> onDestroy",
				Toast.LENGTH_SHORT).show();
	}
}
